import { post } from '@/request/http'
import store from '@/store'

// 审核
export const auditService = (data) =>
  post(
    '/FTKJWLHYPT/freightForwardBusiness/toExamine',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            pdtId: data.pdtId,
            pdtInfo: data.pdtInfo,
            pdtAudittime: data.pdtAudittime,
            pdtAuditor: store.state.user.USR_CODE_DX_H,
            pdtStatus: 'Y'
          }
        }
      }
    }
  )
// 取消审核
export const delAuditService = (data) =>
  post(
    '/FTKJWLHYPT/freightForwardBusiness/cancelToExamine',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            pdtId: data.pdtId,
            pdtInfo: data.pdtInfo,
            pdtAudittime: data.pdtAudittime,
            pdtAuditor: store.state.user.USR_CODE_DX_H,
            pdtStatus: 'N'
          }
        }
      }
    }
  )
